package conson.tech.manage.common.constant;

import conson.tech.core.exception.ErrorType;

/**
 * 业务校验返回码
 */

public enum BusinessMessage implements ErrorType {

    SUCCESS(200, "操作成功"),
    ERROR(500, "操作失败"),
    NOTSURE(600, "不确定状态"),

    UPLOAD_FILE_ERROR(40000, "文件上传异常"),
    E_PASS_ERROR(40001, "隧e通通行券发放异常"),
    GJ_COUPON_ERROR(40002, "公交二维码充值优惠券发放异常"),
    TCC_COUPON_ERROR(40003, "停车场优惠券发放异常"),
    HSYC_COUPON_ERROR(40003, "海水浴场激活更衣票异常"),
    BWJ_COUPON_ERROR(40004, "博物馆免费票发放异常"),
    GET_USER_INFO_FROM_HEADER_FAILED(40102, "用户信息失效，请重新登录！"),
    SAVE_USER_INDEX_FAILED(50002, "保存失败，请重试！"),
    EXPORT_FAIELED(50003, "导出失败"),
    GRANTTIME_ERROR(60001, "定时发放日期必须大于当前日期"),
    COUPONS_DETAIL_ERROR(70001,"查询优惠券详细信息失败"),
    COUPONS_LIST_ERROR(70002,"查询优惠券列表信息失败"),
    COUPONS_STATE_ERROR(70003,"已经提审的不允许再提审"),
    COUPONS_AUDIT_ERROR(70004,"优惠券审核失败,请稍后重试"),
    COUPONS_COPY_ERROR(70005,"优惠券复制出错，请稍后重试"),
    OPERATION_LOG_WRITE_ERROR(70006,"日志操作表写入失败"),
    OPERATION_LOG_QUERY_ERROR(70007,"获取日志列表失败"),
    COUPONS_CENTER_QUERY_ERROR(70008,"查询优惠券配置中心列表错误"),
    COUPONS_CANCELLATION_ERROE(70009,"优惠券作废失败，请重新确认"),
    ACTIVITY_ADD_TIME_ERROR(60012,"新增限时抢失败"),
    ACTIVITY_ADD_RECEIVE_ERROR(60013,"新增直接领用失败"),
    ACTIVITY_DEL_TIME_ERROR(60014,"删除限时抢优惠券失败"),
    ACTIVITY_DEL_RECEIVE_ERROR(60015,"删除直接领用优惠券失败"),
    ACTIVITY_EDIT_TIME_ERROR(60016,"修改限时抢活动失败"),
    ACTIVITY_EDIT_RECEIVE_ERROR(60017,"修改直接领用券失败"),
    ACTIVITY_OVER_NUM_REEOR(60018,"领用券修改之后的数量小于剩余数量，请重新确认"),
    COUPONS_NULL_ERROR(60002, "优惠券信息为空"),
    TRANSMISSION_TIME_ERROR(60003, "活动日期必须在优惠券的有效时期内"),
    COUPON_TIME_OUT_ERROR(60004, "校验批次券的有效期在活动的有效期间"),
    Activity_NUM_ERROR(60005, "优惠券库存不足"),
    COUPON_NUM_ERROR(60006, " 单用户发放数量必须小于优惠券每人最大可领取数量且必须大于0"),
    ACTIVITY_NOT_EXISTS_ERROR(60007, " 领券活动不存在"),
    ACTIVITY_STATUS_ERROR(60008, " 活动状态不是初始状态，无法操作"),
    ACTIVITY_STATUSN_NOT_ON_ERROR(60009, " 活动状态不是进行中，无法操作"),
    ACTIVITY_OVER_INVALID_ERROR(60011, "优惠券活动已结束或已作废"),
    ACTIVITY_COUPON_NOT_ENOUGH_ERROR(60012, "优惠券活动库存不足以发放"),
    ACTIVITY_COUPON_GET_USERINFO_ERROR(60013, "远程获取用户信息失败"),
    ACTIVITY_COUPON_NOT_ENOUGH_GRANT_ERROR(60014, "优惠券活动库存不足以领取"),
    COUPON_VALID_NOT_EXIST_ERROR(60015, "用户有效的优惠券不存在"),
    COUPON_LOCK_TIME_ERROR(60016, "锁定时间不在有效期范围内"),
    ACTIVITY__EXISTS_ERROR(60017, " 领券活动已经存在"),
    ACTIVITY_COUPONS_NOT_EXISTS_ERROR(60018, " 定向发放领券活动暂无批次信息"),
    COUPONS_NOT_EXISTS_ERROR(60019, " 优惠券批次信息不存在"),
    ACTIVITY_TYPE_ERROR(60020, " 领券活动类型必须是定向发放类型"),
    SETTLEMENT_REPORT_DATA_ERROR(60021, " 财务数据不存在"),
    SETTLEMENT_REPORT_DATA_CLOSED_ERROR(60022, " 财务数据已经结算"),
    ACTIVITY_COUPON_STATUS_NOT_START_ERROR(60023, " 优惠券批次领取还没到开始时间"),
    ACTIVITY_CLEAR_ERROR(60024, " 直接领取活动库存清空异常"),
    COUPON_BATCH_NOT_ENOUGH_ERROR(60025, " 优惠券批次数量不足"),
    COUPON_COUNT_LIMIT_ERROR(60026, " 本次活动领取次数已达到最大次数"),
    COUPON_MESSAGE_NO_DATA_ERROR(60027, " 暂无优惠券消息数据"),
    ACTIVITY_CENTER_NOT_EXISTS_ERROR(60028, " 活动配置中的领券活动不存在"),
    ACTIVITY_CENTER_TIME_NOT_EXISTS_ERROR(60029, " 活动配置中的限时抢活动不存在"),
    ACTIVITY_CENTER_TIME_GOING_ERROR(60030, " 限时抢活动正在进行中无法删除"),
    COUPON_MSG_ERROR(60031, " 暂无优惠券消息信息"),
    COUPON_MSG_ARGS_NOT_ILLEGAL_ERROR(60032, " 修改优惠券消息参数不合法"),
    COUPON_STOCK_DECREMENT_ERROR(60033, " 限时抢库存扣减异常"),
    ACTIVITY_CENTER_ID_NOT_EXISTS_ERROR(60034, " 活动配置不存在"),
    ACTIVITY_SUM_NUM_LESS_THAN_REMAIN_ERROR(60035, " 活动总数量不得小于已经消耗的数量"),
    ACTIVITY_Time_DELETE_ERROR(60036, " 限时抢库存删除失败"),
    Coupon_IS_NOT_VALID_ERROR(60037, " 优惠券状态不是有效状态，无法作废"),
    ACTIVITY_GRANT_DELETE_ERROR(60038, " 领券活动库存删除失败"),
    USING_NOT_MATCH_ERROR(60039, " 商户类型不匹配"),
    ;


    private int code;
    private String message;

    BusinessMessage(int code, String message) {
        this.code = code;
        this.message = message;
    }


    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
